package com.computercourse.framework.domain.ucenter.response;

import com.computercourse.framework.domain.ucenter.CicUser;
import com.computercourse.framework.model.response.ResponseResult;
import com.computercourse.framework.model.response.ResultCode;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author Feng.Yuan
 * @description
 * @date 2020/1/28 10:43 下午
 * @return
 */
@Data
@ToString
@NoArgsConstructor
public class ModifyUserResult extends ResponseResult {
    public ModifyUserResult(ResultCode resultCode, CicUser cicUser) {
        super(resultCode);
        this.token = token;
        this.id = cicUser.getId();
        this.username = cicUser.getUsername();
        this.name = cicUser.getName();
        this.utype = cicUser.getUtype();
        this.birthday = cicUser.getBirthday();
        this.userpic = cicUser.getUserpic();
        this.sex = cicUser.getSex();
        this.email = cicUser.getEmail();
        this.phone = cicUser.getPhone();
        this.status = cicUser.getStatus();
        this.createTime = cicUser.getCreateTime();
        this.updateTime = cicUser.getUpdateTime();
        this.password = cicUser.getPassword();
        this.qq = cicUser.getQq();
    }

    private String token;
    private String id;
    private String username;
    private String name;
    private String utype;
    private String birthday;
    private String userpic;
    private String sex;
    private String email;
    private String phone;
    private String status;
    private Date createTime;
    private Date updateTime;
    private String password;
    private String qq;

}
